//
//  ComposeTypeButton.swift
//  VVbo
//
//  Created by Mr.Run on 2017/9/5.
//  Copyright © 2017年 Mr.Run. All rights reserved.
//

import UIKit

class ComposeTypeButton: UIControl {
    @IBOutlet weak var titleLabel: UILabel!
    
    @IBOutlet weak var imageView: UIImageView!
    
    var clsName: String?
    
    class func composeTypeButton(imageName:String, title: String) -> ComposeTypeButton {
        let nib = UINib(nibName: "ComposeTypeButton", bundle: nil)
        
        let btn = nib.instantiate(withOwner: nil, options: nil)[0] as! ComposeTypeButton
        
        btn.imageView.image = UIImage(named: imageName)
        btn.titleLabel.text = title
        return btn
    }
    
}
